package com.dwxt.race.service.feign;

import com.dwxt.common.base.BaseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "redis")
public interface RedisService {

    @RequestMapping("/redis/set")
    public BaseResult set(@RequestParam String key, @RequestParam String value, @RequestParam Long expireTime);

    @RequestMapping("/redis/get")
    public BaseResult get(@RequestParam String key);
}
